﻿using Godot;
public static class VectorUtil
{

    public static Rect2 ToRectFromCentre(this Vector2 v, float size)
    {
        var s = size * 0.5f;
        return new Rect2(v.x - s, v.y - s, size, size);
    }

}
